package com.yq.design.responsibilityOwner;

/**
 * @ClassName CollegeHandlerImpl
 * @Description TODO
 * @Author yaoqiang
 * @Date 2021/8/25 17:06
 * @Version 1.0
 */
public class CollegeHandlerImpl extends ApproverHandler {
    @Override
    void processHandler(PurchaseRequest p) {
        if (p.getPrice()>=5&& p.getPrice()<10){
            System.out.println("college"+p.getPrice());
        }else {
            nextHandler.processHandler(p);
        }
    }
}
